/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package controle.controladores;

/**
 *
 * @author Taeko
 */
public class integrativo extends ControladorAbstrato{
    
    private double valorAnterior = 0; //nsnsns
    
    public integrativo(double Ki){
        super(0, Ki, 0);
    }
    
    @Override
    public double valorControle(double entrada, double h){
        double valor = valorAnterior + (Ki*h*entrada);
        
        valorAnterior = valor;
        
        return valor;
    }
}
